
cmake_minimum_required(VERSION 3.8.0 FATAL_ERROR)

include_directories(
    ${INC_PATH}/x3py
	${INC_PATH}/plugin_a
	${INC_PATH}/plugin_b
	${INC_PATH}/plugin_c
	${INC_PATH}/plugin_d
    )
if(WIN32)
else()
    link_libraries(-ldl)
endif()

add_executable(x3py-demo main.cpp)
set_target_properties(x3py-demo PROPERTIES
    OUTPUT_NAME                   "x3py-demo"
    DEBUG_OUTPUT_NAME             "x3py-demo${CMAKE_DEBUG_POSTFIX}"
    VS_DEBUGGER_WORKING_DIRECTORY ${BIN_PATH})
install(TARGETS x3py-demo         DESTINATION ${BIN_PATH})
